package com.neusoft.sysdata.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.neusoft.sysdata.entity.MdCompany;
import com.neusoft.sysdata.mapper.MdCompanyMapper;
import com.neusoft.sysdata.service.IMdCompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: MD_COMPANY
 * @Author: jeecg-boot
 * @Date:   2019-12-09
 * @Version: V1.0
 */
@Service
@DS("slave")
public class MdCompanyServiceImpl extends ServiceImpl<MdCompanyMapper, MdCompany> implements IMdCompanyService {

    @Autowired
    private MdCompanyMapper mdCompanyMapper;

    /**
     *   查询企业信息
     */
    @Override
    public List<MdCompany> selectCompanyInfo(String code) {
        return this.mdCompanyMapper.selectCompanyInfo(code);
    }
}
